#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

int binary_system(int x)
{
	int ret = 0;
	while (x > 0)
	{
		x = x / 2;
		ret++;
	}

	return ret;
}

void B()
{
	long int T = 0, n = 0;
	long int mindlessness = 1, no_happy = 1;
	cin >> T >> n;
	long int x = n;

	while (n > 0)
	{
		if (n == x)
		{
			if (n == T)
			{
				cout << binary_system(no_happy) << endl;
				T--;
			}
			n--;
			continue;
		}
		long int tmp = no_happy;
		no_happy += mindlessness * 2;
		mindlessness = tmp;

		if (n == T)
		{
			cout << binary_system(no_happy) << endl;
			T--;
		}

		n--;
	}
}

//int main()
//{
//	B();
//	return 0;
//}